﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Copad.BusinessCard.Model
{
    /// <summary>
    /// 日志
    /// </summary>
    public class Log : StandardModel
    {
        /// <summary>
        /// 日志时间
        /// </summary>
        public DateTime LogTime { get; set; }
        /// <summary>
        /// 操作
        /// </summary>
        public OperationEnum Operation
        {
            get { return (OperationEnum)OperationValue; }
            set { OperationValue = (int)value; }
        }
        /// <summary>
        /// 日志内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 操作值
        /// </summary>
        [MapIgnore()]
        public int OperationValue { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string IP { get; set; }
    }
}
